package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.example.entity.matirx.KeepRes;
import com.example.exception.BaseException;
import com.example.mapper.KeepResMapper;
import com.example.service.KeepResService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class KeepResServiceImpl extends ServiceImpl<KeepResMapper, KeepRes> implements KeepResService {
@Autowired
    private KeepResMapper keepResMapper;
    @Override
    public void removeBatchByRecordIds(List<Integer> ids) {
        int i = keepResMapper.deleteByKeepRecordIdIn(ids);
        if (i<=0)throw new BaseException("关联删除保养结果集失败！");
    }
}
